//  LunarCalendar
//
//  Created by mac on 13-8-27.
//  Copyright (c) 2013年 caobo. All rights reserved.
//
//  Modified by cyrusleung on 2014-05-25
//  1.修改了部分方法命名
//  2.增加了getChineseHoliday，getWorldHoliday，getWeekHoliday等方法
//  3.修改了星座返回中文
//  4.其余少量bug修改


#import <Foundation/Foundation.h>

struct SolarTerm
{
	__unsafe_unretained NSString *solarName;
	int solarDate;
};

@interface LunarCalendar : NSObject
{
	NSArray *SolarTerms;//24节气表
	NSArray *arrayMonth;//农历月表
	NSArray *arrayDay;//农历天表

	NSDate *thisdate;
	
    //added by cyrusleung
    NSDictionary *_ChineseHoliday;//节日
    NSDictionary *_GregorianHoliday;
}

-(void)loadWithDate:(NSDate *)date;//加载数据

+ (instancetype)shareInstance;


@property (nonatomic, copy) NSString *DayLunar;

@property (nonatomic, copy) NSString *monthLunar;//农历月

@property (nonatomic, copy) NSString *solarTermTitle; //24节气

@end


@interface NSDate (LunarCalendar)

/****************************************************
 *@Description:获得NSDate对应的中国日历（农历）的NSDate
 *@Params:nil
 *@Return:NSDate对应的中国日历（农历）的LunarCalendar
 ****************************************************/
- (LunarCalendar *)chineseCalendarDate;//加载中国农历


@end